<%--
  Created by IntelliJ IDEA.
  User: lqj
  Date: 2020/12/14
  Time: 2:57 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    response.addCookie(new Cookie("userName","张三"));
%>
   ${cookie.userName} <br>
   名字:${cookie.userName.name} <br>
   值:${cookie.userName.value}
</body>
</html>
